package com.fashion.model;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * User: Administrator
 * Date: 12-4-12
 * Time: 下午4:48
 */
@Entity
@Table(name = "VIDEO")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Video implements Serializable {
    private String id;
    private Date createDateTime;
    private String location;
    private String name;
    private int viewTime;

    @Id
    @Column()
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column()
    public Date getCreateDateTime() {
        return createDateTime;
    }

    public void setCreateDateTime(Date createDateTime) {
        this.createDateTime = createDateTime;
    }

    @Column()
    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Column()
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column()
    public int getViewTime() {
        return viewTime;
    }

    public void setViewTime(int viewTime) {
        this.viewTime = viewTime;
    }
}
